chrome.webRequest.onBeforeSendHeaders.addListener(function (details) {
        const requestHeaders = details.requestHeaders
        console.log(requestHeaders)
        for (let i = 0; i < requestHeaders.length; i++) {
            const header = requestHeaders[i]
            if (header.name === 'Sec-Fetch-Site') {
                console.log(header.value)
            }
        }
        return {
            requestHeaders: details.requestHeaders
        };
    },
    {
        urls: ["https://www.baidu.com/*"]
    },
    ["blocking", "requestHeaders", "extraHeaders"]
);